home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / trueSpace 7.6 / tS761B8Std.exe / {app} / Scripts / MaterialEditor / Bricks / Functions / rsqrt.HLSL.Brick.xml < prev    next >
Encoding:
Extensible Markup Language  |  2008-06-10  |  1.0 KB  |  27 lines

  1. <?xml version="1.0" encoding="utf-8" ?> 
  2. <ME_BRICK GUID="{C1151DCD-5E7C-4BDF-88CA-3ACAD588D547}" Name="RtRSqrt" GUIName="Sqrt Reciprocal" Description="Returns 1 / sqrt(X) (Per component) [rsqrt]">
  3.     <ME_BRICK_INPUTPARAM GUID="{65D2544B-6D94-4AE9-B1DC-E627C6EB121D}" Name="Input" Type="RtNumeric"/>
  4.     <ME_BRICK_OUTPUTPARAM GUID="{87AE562A-AD6B-4C55-B793-B6BE8678EB44}" Name="Result" Type="RtNumeric"/>
  5.     <ME_BRICK_CODE><![CDATA[
  6.         void RtRSqrt(in RtFloat Input, out RtFloat Result) {
  7.             Result = rtx_Rsqrt(Input);
  8.         }
  9.  
  10.         void RtRSqrt(in RtFloat3 Input, out RtFloat3 Result) {
  11.             Result = rtx_Rsqrt(Input);
  12.         }
  13.  
  14.         void RtRSqrt(in RtFloat4 Input, out RtFloat4 Result) {
  15.             Result = rtx_Rsqrt(Input);
  16.         }
  17.  
  18.         void RtRSqrt(in RtFloat3x3 Input, out RtFloat3x3 Result) {
  19.             Result = rtx_Rsqrt(Input);
  20.         }
  21.  
  22.         void RtRSqrt(in RtFloat4x4 Input, out RtFloat4x4 Result) {
  23.             Result = rtx_Rsqrt(Input);
  24.         }
  25.     ]]></ME_BRICK_CODE>
  26. </ME_BRICK>
  27.